package cn.leaf.strategy;

import java.math.BigDecimal;

/**
*
 * description: old customer strategy
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-07-15 22:21:46
 *
*/
public class OldCustomerStrategy implements DiscountStrategy {
    @Override
    public BigDecimal getPrice(BigDecimal originalPrice) {
        System.out.println("恭喜，老顾客享有9折优惠");
        return originalPrice.multiply(new BigDecimal("0.9"));
    }
}
